<?php
$this->breadcrumbs = array(
	'材料列表' => array(
		'material/index'
	),
	$model->material->name => array(
		'material/view',
		'id' => $model->materialId
	),
	'型号列表' => array(
		'index',
		'materialId' => $model->materialId
	),
	'管理型号',
);

$this->userActions = array(
	array(
		'label' => '型号列表',
		'url' => array(
			'index',
			'materialId' => $model->materialId
		)
	),
	array(
		'label' => '新建型号',
		'url' => array(
			'create',
			'materialId' => $model->materialId
		),
		'iconClass'=>'icon-brick-add',
	),
);

?>

<h1>Manage Material Models</h1>
<?php $this
	->widget('zii.widgets.grid.CGridView',
		array(
			'id' => 'material-model-grid',
			'dataProvider' => $model->search(),
			'filter' => $model,
			'columns' => array(
				//'id',
				//'materialId',
				'model',
				'code',
				'unit',
				'referenceCode',
				'note',
				array(
					'class' => 'CButtonColumn',
				),
			),
		));
?>
